<script>
import { ref, h } from 'vue';
export default {
    data() {
        return {
            counter: 0
        }
    },
    // setup() {
    //     const counter = ref(9);

    //     return {
    //         counter
    //     }
    // },
    render() {
        return h("div", {class: "app"}, [
            h("h2", null, `当前计数：${this.counter}`),
            h("button", {
                onclick: () => this.counter++
            }, "btn+1"),
            h("button", {
                onclick: () => this.counter--
            }, "btn-1")
        ])
    },
}
</script>
<style>
</style>
